/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dell
 * Date: 2023-12-16
 * Time: 21:30
 */
public class main {
    public static void main(String[] args) {
        MyArraylist myArraylist=new MyArraylist();
        System.out.println(myArraylist.size());
        myArraylist.add(1);
        myArraylist.add(2);
        myArraylist.add(3);
        myArraylist.add(4);
        myArraylist.add(5);
        myArraylist.add(6);
        myArraylist.add(3,9);
        myArraylist.display();
        System.out.println();
        System.out.println(myArraylist.size());
        System.out.println(myArraylist.contains(5));
        System.out.println(myArraylist.contains(8));
        System.out.println(myArraylist.get(3));
        System.out.println(myArraylist.indexOf(2));
        myArraylist.set(3,7);
        myArraylist.display();
        System.out.println();
        myArraylist.remove(5);
        myArraylist.display();
    }
}